 <?php 
		if($value){
			echo '
			<span title="'._resource($title,true).'">
	<a href="javascript:;">
			<img src="'.$this->webroot.'img/backend/tick.png'.'" width="16" height="16" border="0" alt="'._resource($title,true).'" onclick="ajax(\''.$fieldname.'_'.$id.'\',\''.$this->params['controller'].'/published/'.$id.'/0/'.$field.'\');" /></a></span>';
		}
		else{
			echo '
			<span title="'._resource('NOT '.$title,true).'">
	<a href="javascript:;">
			<img src="'.$this->webroot.'img/backend/publish_x.png'.'" width="16" height="16" border="0" alt="'._resource('NOT '.$title,true).'" onclick="ajax(\''.$fieldname.'_'.$id.'\',\''.$this->params['controller'].'/published/'.$id.'/1/'.$field.'\');" /></a></span>';
		}
		?>
		<script>
ajax('mainMenu','menus/getMenu');
</script>